<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#goods" data-toggle="tab"  style="color: #0d0d0d;">{:__('商品信息')}
                    </a></li>
                <li><a href="#menu" data-toggle="tab"  style="color: #0d0d0d;">{:__('商品详情')}</a></li>

            </ul>
        </div>
        <!--商品信息-->
        <div class="panel-body">
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade active in" id="goods">
                    <div class="row">
                        <div class="col-xs-12">
                            <input type="hidden" name="commandtype" value="goods"/>

                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-name" data-rule="" class="form-control" name="row[name]" type="text">
                                </div>
                            </div>

                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Partnumber')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-partnumber" data-rule="" class="form-control" name="row[partnumber]"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Replace')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-replace" data-rule="" class="form-control" name="row[replace]"
                                           type="text">
                                </div>
                            </div>

                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Manufacturer')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-manufacturer" data-rule="" class="form-control"
                                           name="row[manufacturer]" type="text">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Attribute')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="radio">
                                        {foreach name="attributeList" item="vo"}

                                            <label for="row[attribute]-{key}"> <input id="row[attribute]-{key}" name="row[attribute]" type="radio" value="{$key}" {in name="key"
                                                                                      value="new" }checked{/in} />
                                                {$vo}
                                            </label>
                                        {/foreach}
                                    </div>


                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Brand_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-brand_id" data-rule="required" data-source="goods/brand/selectpage" data-field="name" data-multiple="true"   class="form-control selectpage" name="row[brand_id]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <style>
                                        .category_box{
                                            padding-top: 20px;
                                        }
                                        .category_item {
                                            width: 200px;
                                            padding: 10px;
                                            height: 300px;
                                            border: 1px solid #cccccc;
                                            /*border-left: none;*/
                                            float: left;
                                        }
                                        .category_select_item span{
                                            color: red;
                                            cursor: pointer;
                                        }
                                        .category_input_box {
                                            width: 180px;
                                        }
                                        .category_li_box{
                                            height: 240px;
                                            overflow-y: scroll;
                                        }
                                        .category_li_item{
                                            display: flex;
                                            align-items: center;
                                            justify-content: space-between;
                                        }
                                        .category_toselect{
                                            color: #0000ff;
                                            width: 40px;
                                        }
                                        .category_toselects{
                                            color: grey;
                                            width: 40px;
                                        }

                                        .category_tonext{
                                            display: -webkit-box;
                                            -webkit-box-orient: vertical;
                                            -webkit-line-clamp: 1;
                                            overflow: hidden;
                                            width: 110px;
                                            text-align: left;
                                        }
                                        .category_next{
                                            width: 20px;
                                        }
                                        .category_toselect,.category_tonext{
                                            cursor: pointer;
                                        }
                                    </style>

                                    <input id="c-category_id" name="row[category_id]" type="hidden" value="">
                                    <dvi class="category_select_box">
                                    </dvi>
                                    <div class="category_box">
                                        <div class="category_item" data-pid="0" data-id="0" data-title="">
                                            <div class="category_input_box">
                                                <input type="text" class="category_input form-control">
                                            </div>
                                            <div class="category_li_box">
                                                {foreach $categoryList as $v}
                                                <div class="category_li_item" data-id="{$v.id}">
                                                    {if condition="$v.level == 3" }
                                                     <div class="category_toselect">选择</div>
                                                    {/if}
                                                    <div class="category_tonext" data-child="{$v.child}"> {$v.name} </div>
                                                    <div class="category_next"> {$v.child>0?'>':''} </div>
                                                </div>
                                                {/foreach}
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Models_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <style>
                                        .models_box{
                                            padding-top: 20px;
                                        }
                                        .models_item {
                                            width: 200px;
                                            padding: 10px;
                                            height: 300px;
                                            border: 1px solid #cccccc;
                                            /*border-left: none;*/
                                            float: left;
                                        }
                                        .models_select_item span{
                                            color: red;
                                            cursor: pointer;
                                        }

                                        .input_box {
                                            width: 180px;
                                        }
                                        .models_li_box{
                                            height: 240px;
                                            overflow-y: scroll;
                                        }
                                        .models_li_item{
                                            display: flex;
                                            align-items: center;
                                            justify-content: space-between;
                                        }
                                        .toselect{
                                            color: #0000ff;
                                            width: 40px;
                                        }
                                        .tonext{
                                            display: -webkit-box;
                                            -webkit-box-orient: vertical;
                                            /*-webkit-line-clamp: 1;*/
                                            overflow: hidden;
                                            width: 110px;
                                            text-align: left;
                                        }
                                        .next{
                                            width: 20px;
                                        }
                                        .toselect,.tonext{
                                            cursor: pointer;
                                        }
                                    </style>
                                    <input id="c-models_id" name="row[models_id]" type="hidden" value="">
                                    <dvi class="models_select_box">
                                    </dvi>
                                    <div class="models_box">
                                        <div class="models_item" data-pid="0" data-id="0" data-title="">
                                            <div class="input_box">
                                                <input type="text" class="models_input form-control">
                                            </div>
                                            <div class="models_li_box">
                                                {foreach $toplist as $v}
                                                <div class="models_li_item" data-id="{$v.id}">
                                                    <div class="toselect toselect_to{$v.id}">选择</div>
                                                    <div class="tonext" data-child="{$v.child}">{$v.mergename}</div>
                                                    <div class="next"> {$v.child>0?'>':''} </div>
                                                </div>
                                                {/foreach}
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group" style="margin-top: -10px;">
                                <div class="col-xs-12 col-sm-8">
                                    <a href="javascript:;" class="btn btn-sm btn-success btn-categorynone"><i class="fa fa-plus">{:__('添加分类')}</i></a></a>
                                    <a href="javascript:;" class="btn btn-sm btn-primary btn-categoryhidn"><i class="fa fa-">{:__('取消分类')}</i></a></a>
                                    <input id="c-category_status" class="form-control hidden" name="row[category_status]" type="text" value="0" >
                                </div>
                            </div>
                            <div class="form-group" id="categoryh" style="display: none;">
                                <div class="form-group" style="margin-top: -10px;">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <style>
                                            .category_box1{
                                                padding-top: 20px;
                                            }
                                            .category_item1 {
                                                width: 200px;
                                                padding: 10px;
                                                height: 300px;
                                                border: 1px solid #cccccc;
                                                /*border-left: none;*/
                                                float: left;
                                            }
                                            .category_select_item1 span{
                                                color: red;
                                                cursor: pointer;
                                            }
                                            .category_input_box1 {
                                                width: 180px;
                                            }
                                            .category_li_box1{
                                                height: 240px;
                                                overflow-y: scroll;
                                            }
                                            .category_li_item1{
                                                display: flex;
                                                align-items: center;
                                                justify-content: space-between;
                                            }
                                            .category_toselect1{
                                                color: #0000ff;
                                                width: 40px;
                                            }
                                            .category_tonext1{
                                                display: -webkit-box;
                                                -webkit-box-orient: vertical;
                                                -webkit-line-clamp: 1;
                                                overflow: hidden;
                                                width: 110px;
                                                text-align: left;
                                            }
                                            .category_next1{
                                                width: 20px;
                                            }
                                            .category_toselect1,.category_tonext1{
                                                cursor: pointer;
                                            }
                                        </style>

                                        <input id="c-category_id1" name="row[category_ids]" type="hidden" value="">
                                        <dvi class="category_select_box1">
                                        </dvi>
                                        <div class="category_box1">
                                            <div class="category_item1" data-pid="0" data-id="0" data-title="">
                                                <div class="category_input_box1">
                                                    <input type="text" class="category_input1 form-control">
                                                </div>
                                                <div class="category_li_box1">
                                                    {foreach $categoryList as $v}
                                                    <div class="category_li_item1" data-id="{$v.id}">
                                                        {if condition="$v.level == 3" }
                                                        <div class="category_toselect1">选择</div>
                                                        {/if}
                                                        <div class="category_tonext1" data-child="{$v.child}"> {$v.name} </div>
                                                        <div class="category_next1"> {$v.child>0?'>':''} </div>
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group" style="margin-top: -10px;">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Models_id')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <style>
                                            .models_box1{
                                                padding-top: 20px;
                                            }
                                            .models_item1 {
                                                width: 200px;
                                                padding: 10px;
                                                height: 300px;
                                                border: 1px solid #cccccc;
                                                /*border-left: none;*/
                                                float: left;
                                            }
                                            .models_select_item1 span{
                                                color: red;
                                                cursor: pointer;
                                            }

                                            .input_box1 {
                                                width: 180px;
                                            }
                                            .models_li_box1{
                                                height: 240px;
                                                overflow-y: scroll;
                                            }
                                            .models_li_item1{
                                                display: flex;
                                                align-items: center;
                                                justify-content: space-between;
                                            }
                                            .toselect1{
                                                color: #0000ff;
                                                width: 40px;
                                            }
                                            .tonext1{
                                                display: -webkit-box;
                                                -webkit-box-orient: vertical;
                                                /*-webkit-line-clamp: 1;*/
                                                overflow: hidden;
                                                width: 110px;
                                                text-align: left;
                                            }
                                            .next1{
                                                width: 20px;
                                            }
                                            .toselect1,.tonext1{
                                                cursor: pointer;
                                            }
                                        </style>
                                        <input id="c-models_id1" name="row[models_ids]" type="hidden" value="">
                                        <dvi class="models_select_box1">
                                        </dvi>
                                        <div class="models_box1">
                                            <div class="models_item1" data-pid="0" data-id="0" data-title="">
                                                <div class="input_box1">
                                                    <input type="text" class="models_input1 form-control">
                                                </div>
                                                <div class="models_li_box1">
                                                    {foreach $toplist as $v}
                                                    <div class="models_li_item1" data-id="{$v.id}">
                                                        <div class="toselect1 toselect_to1{$v.id}">选择</div>
                                                        <div class="tonext1" data-child="{$v.child}">{$v.mergename}</div>
                                                        <div class="next1"> {$v.child>0?'>':''} </div>
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Name_keyword')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-name_keyword" class="form-control" name="row[name_keyword]"
                                           type="text">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Parameter')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <dl class="fieldlist" data-name="row[parameter]">
                                        <dd>
                                            <ins>名称</ins>
                                            <ins>值</ins>
                                        </dd>
                                        <dd>
                                            <a href="javascript:;" class="btn btn-sm btn-success btn-append">
                                                <i class="fa fa-plus">{:__('Append')}</i></a>
                                        </dd>
                                        <textarea name="row[parameter]" class="form-control hide" cols="30" rows="5"></textarea>
                                    </dl>
                                </div>

                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Ordinaryprice')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-ordinaryprice" data-rule="required" class="form-control" step="0.01"
                                           name="row[ordinaryprice]" type="number" value="0.00">
                                </div>
                            </div>

                            <div class="form-group col-xs-5 col-sm-4" style="margin-left:65px;margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-4">{:__('Haveprice')}:</label>
                                <div class="col-xs-12 col-sm-4">
                                    <input id="c-haveprice" data-rule="required" class="form-control" step="0.01"
                                           name="row[haveprice]" type="number" value="0.00">
                                </div>
                            </div>
                            <div class="form-group col-xs-5 col-sm-4" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-4">{:__('Agentprice')}:</label>
                                <div class="col-xs-12 col-sm-4">
                                    <input id="c-agentprice" data-rule="required" class="form-control" step="0.01"
                                           name="row[agentprice]" type="number" value="0.00">
                                </div>
                            </div>
                            <div class="form-group col-xs-12 col-sm-4" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-4">{:__('Integral_num')}:</label>
                                <div class="col-xs-12 col-sm-4">
                                    <input id="c-integral_num" data-rule="required" class="form-control"
                                           name="row[integral_num]" type="number" value="0">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Freight')}:</label>
                                <div class="col-xs-12 col-sm-8">

                                    <select id="c-freight" data-rule="required" class="form-control selectpicker"
                                            name="row[freight]">
                                        {foreach name="freightList" item="vo"}
                                        <option value="{$key}" {in name="key" value="0" }selected{/in}>{$vo}</option>
                                        {/foreach}
                                    </select>

                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Shuff_image')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="input-group">
                                        <input id="c-shuff_image" class="form-control" size="50" name="row[shuff_image]"
                                               type="text">
                                        <div class="input-group-addon no-border no-padding">
                                            <span><button type="button" id="faupload-shuff_image"
                                                          class="btn btn-danger faupload" data-input-id="c-shuff_image"
                                                          data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                                          data-multiple="true" data-preview-id="p-shuff_image"><i
                                                    class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                            <span><button type="button" id="fachoose-shuff_image"
                                                          class="btn btn-primary fachoose" data-input-id="c-shuff_image"
                                                          data-mimetype="image/*" data-multiple="true"><i
                                                    class="fa fa-list"></i> {:__('Choose')}</button></span>
                                        </div>
                                        <span class="msg-box n-right" for="c-shuff_image"></span>
                                    </div>
                                    <ul class="row list-inline faupload-preview" id="p-shuff_image"></ul>
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Goods_video')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="input-group">
                                        <input id="c-goods_video" class="form-control" size="50" name="row[goods_video]"
                                               type="text">
                                        <div class="input-group-addon no-border no-padding">
                                            <span><button type="button" id="faupload-goods_video"
                                                          class="btn btn-danger faupload" data-input-id="c-goods_video"
                                                          data-mimetype="mp4,mp3,avi,flv,wmv" data-multiple="false"
                                                          data-preview-id="p-goods_video" data-maxsize="50M"><i
                                                    class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                            <span><button type="button" id="fachoose-goods_video"
                                                          class="btn btn-primary fachoose" data-input-id="c-goods_video"
                                                          data-mimetype="mp4,mp3,avi,flv,wmv" data-multiple="false"><i
                                                    class="fa fa-list"></i> {:__('Choose')}</button></span>
                                        </div>
                                    </div>
                                    <span class="msg-box n-right" for="c-goods_video"></span>
                                    <ul class="row list-inline faupload-preview" id="p-goods_video"></ul>
                                </div>
                            </div>
                            <div class="form-group col-xs-5 col-sm-4" style="margin-left:65px;margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
                                <div class="col-xs-12 col-sm-8">

                                    <div class="radio">
                                        {foreach name="statusList" item="vo"}
                                        <label for="row[status]-{$key}"><input id="row[status]-{$key}"
                                                                               name="row[status]" type="radio"
                                                                               value="{$key}" {in name="key" value="0"
                                                                               }checked{/in} /> {$vo}</label>
                                        {/foreach}
                                    </div>

                                </div>
                            </div>
                            <div class="form-group col-xs-5 col-sm-4" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Is_new')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="radio">
                                        {foreach name="isNewList" item="vo"}
                                        <label for="row[is_new]-{$key}"><input id="row[is_new]-{$key}"
                                                                               name="row[is_new]" type="radio"
                                                                               value="{$key}" {in name="key" value="0"
                                                                               }checked{/in} /> {$vo}</label>
                                        {/foreach}
                                    </div>
                                </div>
                            </div>
                            <div class="form-group col-xs-5 col-sm-4" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Is_hot')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="radio">
                                        {foreach name="isHotList" item="vo"}
                                        <label for="row[is_hot]-{$key}"><input id="row[is_hot]-{$key}"
                                                                               name="row[is_hot]" type="radio"
                                                                               value="{$key}" {in name="key" value="0"
                                                                               }checked{/in} /> {$vo}</label>
                                        {/foreach}
                                    </div>
                                </div>
                            </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Spec_type')}:</label>
                                    <div class="col-xs-12 col-sm-8">

                                        <select id="c-spec_type" data-rule="required" class="form-control selectpicker"
                                                name="row[spec_type]">
                                            {foreach name="specTypeList" item="vo"}
                                            <option value="{$key}" {in name="key" value="0" }selected{/in}>{$vo}</option>
                                            {/foreach}
                                        </select>

                                    </div>
                                </div>
                                <div class="form-group" data-favisible="spec_type=1">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Attr_json')}:</label>
                                    <div class="col-xs-12 col-sm-8">

                                        <table class="table fieldlist" data-name="row[attr_json]"
                                               data-template="row[attr_json]tpl">
                                            <tr>
                                                <td width="120">{:__('attr_json name')}</td>
                                                <td>{:__('attr_json values')}(多个用逗号","隔开)</td>
                                                <td width="90">{:__('Operate')}</td>
                                            </tr>
                                            <tr>
                                                <td colspan="3">
                                                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i
                                                            class="fa fa-plus"></i> {:__('Append')}</a>
                                                    <a href="javascript:;" class="btn btn-sm btn-success btn-create"><i
                                                            class="fa fa-plus"></i> {:__('生成规格')}</a>
                                                    <textarea name="row[attr_json]" id="attr_json" class="form-control hide"
                                                              cols="30" rows="5"></textarea>
                                                </td>
                                            </tr>
                                        </table>
                                        <script type="text/html" id="row[attr_json]tpl">
                                            <tr>
                                                <td><input type="text" name="<%=name%>[<%=index%>][name]" class="form-control"
                                                           value="<%=row.name%>"/></td>
                                                <td><input type="text" name="<%=name%>[<%=index%>][values]" class="form-control"
                                                           data-role='tagsinput' data-tagsinput-options='{"trimValue":true}'
                                                           value="<%=row.values%>"/></td>
                                                <td width="90">
                                            <span class="btn btn-sm btn-danger btn-remove"><i
                                                    class="fa fa-times"></i></span>
                                                    <span class="btn btn-sm btn-primary btn-dragsort"><i
                                                            class="fa fa-arrows"></i></span>
                                                </td>
                                            </tr>
                                        </script>

                                    </div>
                                </div>
                                <div class="form-group" data-favisible="spec_type=1">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('商品规格')}:</label>
                                    <div class="col-xs-12 col-sm-8">

                                        <table class="table fieldlist" data-name="row[goods_sku]"
                                               data-template="row[goods_sku]tpl">
                                            <tr>
                                                <td>{:__('goods_sku spec')}</td>
                                                <td width="90">{:__('goods_sku price')}</td>
                                                <td width="90">{:__('goods_sku haveprice')}</td>
                                                <td width="90">{:__('goods_sku agentprice')}</td>
                                                <!--                                        <td width="90">{:__('goods_sku stock')}</td>-->
                                                <!--                                        <td width="90">{:__('goods_sku sales')}</td>-->
                                                <td>{:__('goods_sku image')}</td>
                                                <!--                    <td width="90">{:__('Operate')}</td>-->
                                            </tr>
                                            <tr>
                                                <td colspan="5">
                                                    <!--                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a>-->
                                                    <textarea name="row[goods_sku]" id="goods_sku" class="form-control hide"
                                                              cols="30" rows="5"></textarea>
                                                </td>
                                            </tr>
                                        </table>
                                        <script type="text/html" id="row[goods_sku]tpl">
                                            <tr>
                                                <td>
                                                    <input type="hidden" name="<%=name%>[<%=index%>][id]" class="form-control"
                                                           value="<%=row.id%>"/>
                                                    <input type="hidden" name="<%=name%>[<%=index%>][spec]" class="form-control"
                                                           value="<%=row.spec%>"/>
                                                    <input type="text" name="<%=name%>[<%=index%>][spec_value_str]"
                                                           class="form-control" value="<%=row.spec_value_str%>"/>
                                                </td>
                                                <td><input type="number" name="<%=name%>[<%=index%>][price]"
                                                           class="form-control" value="<%=row.price%>"/></td>
                                                <td><input type="number" name="<%=name%>[<%=index%>][haveprice]"
                                                           class="form-control" value="<%=row.haveprice%>"/></td>
                                                <td><input type="number" name="<%=name%>[<%=index%>][agentprice]"
                                                           class="form-control" value="<%=row.agentprice%>"/></td>
<!--                                                <td><input type="number" name="<%=name%>[<%=index%>][stock]"-->
<!--                                                           class="form-control" value="<%=row.stock%>"/></td>-->
                                                <td>
                                                    <div class="input-group">
                                                        <input id="gsku_<%=index%>" class="form-control" size="50"
                                                               name="<%=name%>[<%=index%>][image]" type="text"
                                                               value="<%=row.image%>">
                                                        <div class="input-group-addon no-border no-padding">
                                                    <span><button type="button" id="faupload<%=index%>"
                                                                  class="btn btn-danger faupload"
                                                                  data-input-id="gsku_<%=index%>"
                                                                  data-mimetype="image/*" data-multiple="false"><i
                                                            class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                                            <span><button type="button" id="fachoose<%=index%>"
                                                                          class="btn btn-primary fachoose"
                                                                          data-input-id="gsku_<%=index%>"
                                                                          data-mimetype="image/*" data-multiple="false"><i
                                                                    class="fa fa-list"></i> {:__('Choose')}</button></span>
                                                        </div>
                                                        <span class="msg-box n-right" for="c-image"></span>

                                                    </div>
                                                    <ul class="row list-inline faupload-preview" id="p-<%=index%>">
                                                    </ul>
                                                </td>
<!--                                                <td><input type="hidden" name="<%=name%>[<%=index%>][sales]"-->
<!--                                                           class="form-control" value="<%=row.sales%>"/></td>-->

                                                <!--                    <td width="90">-->
                                                <!--                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>-->
                                                <!--                    </td>-->
                                            </tr>
                                        </script>

                                    </div>
                                </div>
                        </div>
                    </div>
                </div>
                <!--详情-->
                <div class="tab-pane fade" id="menu">
                    <div class="row">
                        <div class="col-xs-12">
                            <input type="hidden" name="commandtype" value="menu"/>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Details_content')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-details_content" class="form-control editor" rows="5"
                                              name="row[details_content]" cols="50"></textarea>
                                </div>
                            </div>
                        </div>

                        <div class="col-xs-12">
                            <input type="hidden" name="commandtype" value="menu"/>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Installation')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-installation" class="form-control editor" rows="5"
                                              name="row[installation]" cols="50"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                <!--            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
            </div>
        </div>
    </div>
</form>
